﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ershou.BLL;
public partial class gly_yhxx : System.Web.UI.Page
{
    yh yh1 = new yh();
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = Request.QueryString["ID"].ToString();
        int i = int.Parse(id);
        TextBox1.Text = yh1.select1(i);
        TextBox2.Text = yh1.select2(i);
        string time = yh1.select3(i);
        if (time.Length > 8)
        {
            TextBox4.Text = DateTime.Parse(time).Year.ToString();
            TextBox5.Text = DateTime.Parse(time).Month.ToString();
            TextBox6.Text = DateTime.Parse(time).Day.ToString();
        }
        TextBox7.Text = yh1.select4(i);
        TextBox8.Text = yh1.select5(i);
        TextBox9.Text = yh1.select6(i);
        Image1.ImageUrl = "~/Image/yh/" + yh1.select7(i);
        TextBox10.Text = yh1.select8(i);
    }

    protected void Button1_Click(object sender, EventArgs e)
    {

    }
}